From fef7d4d95d7ee1fedf219f5a7e75a263566cccae Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 6 Sep 2008 17:30:23 +0000 Subject: [PATCH] Might as well be more consistent with "change protection" links --- includes/LogEventsList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 28b0ea4f1a..a73e4781f3 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -241,7 +241,7 @@ class LogEventsList { } else if( self::typeAction($row,'protect',array('modify','protect','unprotect')) ) { $revert = '(' . $this->skin->makeKnownLinkObj( $title, $this->message['hist'], 'action=history&offset=' . urlencode($row->log_timestamp) ) . ')'; - if( self::typeAction($row,'protect','modify') && $wgUser->isAllowed('protect') ) { + if( $wgUser->isAllowed('protect') && $row->log_action != 'unprotect' ) { $revert .= ' (' . $this->skin->makeKnownLinkObj( $title, $this->message['protect_change'], 'action=unprotect' ) . ')'; } -- 2.20.1